package template

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

func init() {
	r := gin.Default()
	r.LoadHTMLGlob("template/*.html")
	r.GET("/index", func(context *gin.Context) {
		context.HTML(http.StatusOK, "template.html", gin.H{
			"title": "我是测试",
			"ce":    "12345",
		})
	})
	r.Run(":8000")
}
